package com.ymttest.database.mongo;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Map;

import com.mongodb.WriteResult;
import com.ymt.database.MongoDBDriver;
import com.ymttest.utils.MapUtil;
import com.ymttest.utils.YMTDateUtil;

/************************************************************************************
 * @File name :LiveWapper.java
 * @Author : wuweun
 * @Date : 2017年4月13日
 * @Copyright : 洋码头
 * 商品合库 新库
 ************************************************************************************/
public class LivesWapper {
	MongoDBDriver lives = YmtMongoDriverFactroy.getInstance_YmtProductsDBdriver("Lives");
	MongoDBDriver liveProducts = YmtMongoDriverFactroy.getInstance_YmtProductsDBdriver("LiveProducts");
	MongoDBDriver products = YmtMongoDriverFactroy.getInstance_YmtProductsDBdriver("Products");
	public LivesWapper()  {
	}
		
	

	

	


//	public boolean update(Map<String, Object> searchMap,Map<String, Object> updateMap) throws Exception{
//		return  mdd.update(searchMap, updateMap).isUpdateOfExisting();
//	}
//	
//	
//	public int getCountByActivityId(int activityId) throws Exception{
//		return mdd.selectPartLimitToMap("{\"ActivityId\":" + activityId + "}",50).size();
//	}
	

	public static void main(String[] args) throws Exception {
		
		//updatetPasByUid();
		//boolean a= new LiveBasicInfoWapper().update(MapUtil.hashMap("ActivityId", 152131),MapUtil.hashMap("StartTime",new Date()));
		
		//Mongo

	}      
}
